<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>title</title>
    <script>

        window.onload = function() {
          console.log('page finish load');
          setTimeout(() => {
            window.bridges.showToasts();
          }, 1000); // 延迟一秒调用原生方法
        }

        // 提供给原生调用的js方法
        function h5Test() {
          console.log('h5 receive native message');
        }
        function toast(){
           window.bridges.showToasts();
        }
        var button = document.getElementById("tapArkTS");
        button.addEventListener("click", toast);
    </script>
</head>

<body>
    <p>测试回调方法</p>
    <button id="tapArkTS">触发原生方法</button>
</body>
</html>
